﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace EBA.Data
{
    public class CollectionRepository<Entity, IEntity> : IRepository<IEntity> where Entity : class,IEntity, new()
    {

        List<Entity> Items { get; set; }
        public CollectionRepository(IEnumerable<Entity> items)
        {
            this.Items = items.ToList();
        }

        public IEntity NewEntity()
        {
            return new Entity();
        }

        public void Add(IEntity entity)
        {
            throw new NotImplementedException();
        }

        public void Delete(IEntity entity)
        {
            throw new NotImplementedException();
        }

        public void DeleteAll(IEnumerable<IEntity> entities)
        {
            throw new NotImplementedException();
        }

        public int DeleteAll(System.Linq.Expressions.Expression<Func<IEntity, bool>> filter)
        {
            throw new NotImplementedException();
        }

        public int UpdateAll(System.Linq.Expressions.Expression<Func<IEntity, bool>> filter, System.Linq.Expressions.Expression<Func<IEntity, object>> evaluator)
        {
            throw new NotImplementedException();
        }

        public ITransientRepository<IEntity> CreateTransient()
        {
            throw new NotImplementedException();
        }

        public IQueryable<IEntity> AsQuerybale
        {
            get { throw new NotImplementedException(); }
        }

        public void WithWhere(string predicate)
        {
            throw new NotImplementedException();
        }
    }
}
